﻿using System;

namespace Best.SmartCms.Utility
{
    /// <summary>
    /// 
    /// </summary>
    public static class GuidHelper
    {
        /// <summary>
        /// 是否未空guid
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static bool IsEmpty(this Guid value)
        {
            return value == Guid.Empty;
        }
        /// <summary>
        /// 是否未空guid
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static bool IsNullOrEmpty(this Guid? value)
        {
            return value.HasValue == false || value.Value == Guid.Empty;
        }
    }
}
